﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master"
    Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.QuestionView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    QuestionCreate
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Thêm Câu Hỏi Mới</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("QuestionList", "Survey") %>" class="button">Danh sách</a>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
            <% using (Html.BeginForm("QuestionCreate", "Survey", FormMethod.Post)){%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                <%= Html.ValidationSummary(true) %>

                <div class="display-label error">
                    <div class="errorcontent">
                        <p><%= Html.ValidationMessage("NoticePage")%></p>
                        <p><%= Html.ValidationMessageFor(model => model.QuestionContent) %></p>
                    </div>
                </div>

                <div>
                    <label>Ngôn ngữ:</label><br />
                    <%= Html.DropDownListFor(model => model.LanguageID, ViewData["LaguageList"] as SelectList, new { @style = "width:300px;" })%>
                </div><br class="clear"/>
                <div>
                    <div class="editor_fl">
                        <label>Nội dung:</label><br />
                        <%= Html.TextBoxFor(model => model.QuestionContent, new { Maxlength = "4000", @style="width:618px;"})%>
                    </div>
                    <div class="editor_right">
                        <div class="editor_fr">
                            <label>Thứ tự xuất hiện:</label> <span><%= Html.ValidationMessageFor(model => model.Location) %></span><br />
                            <%= Html.TextBoxFor(model => model.Location, new { @style="width:290px;"})%>
                        </div>
                    </div>
                </div><br class="clear"/><br />
                <p>
                    <input type="submit" value="Lưu" />
                    <a href="<%= Url.Action("QuestionCreate", "Survey") %>" class="buttonform">Làm lại</a>
                </p>
            <% } %>
        </div>
    </div>
</asp:Content>
